<html lang="en" xml:lang="en"><head>
<META http-equiv="Content-Type" content="text/html">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><META name="description" content="The Legend widget displays labels and symbols for layers in the map."><meta name="content-language" content="en"><link href="rsrc/htmlhelp.css" rel="stylesheet" type="text/css"><title>Web AppBuilder for ArcGIS | Help - Legend widget
</title>
                <script type="text/javascript" language="JavaScript">
                    var pathL  = self.location.pathname.split ("/");
                    var fname = pathL[pathL.length-1];
                    var i = fname.lastIndexOf (".htm");
                    if (i>=0) {
                    fname = fname.substring (0, i)
                    } else {
                    //??
                    }
                    if (self.location.hash) {
				    		      fname = fname + self.location.hash;
						        }
                    self.location.replace ("../index.html#//" + fname);
                </script>
                </head><!--Publication GUID: [GUID-E7D1C130-8F87-4109-8D61-E73A46083F52]--><!--Topic GUID: [GUID-7D204675-A9C8-4B30-AC6C-1C8E00C6D773]--><body><div id="content"><div class="header"><h1>Legend widget
</h1><div id="breadcrumb"></div></div>
<div class="section1" id="ESRI_SECTION1_D8C71AAE8ADA4545936C4A9A38C7A92E" purpose="section1"><h2></h2><p id="GUID-41D69D77-9231-46AA-A6A7-598AD702CFE8"> The Legend widget displays labels and symbols for layers in the map. It supports dynamic, tiled, image,  feature, KML layer types, and  WMS layers with an associated legend URL. The Legend widget can be set to automatically
update when the visibility of a layer or sublayer changes. 
When no operational layers are rendered in the map, the Legend widget is blank. </p><p id="GUID-A6B2E5F5-5293-4EE8-A0A4-3143696EFE10"> Basemaps are not shown in the Legend widget by default. The order in which layers appear in the Legend widget corresponds to the layer order in the map. The widget can also be set to respect the scale dependencies of the layers in the map. This can be a useful indicator to map readers that additional data layers are present in the map but currently not displayed in the map because of scale dependencies. </p></div><div class="section1" id="GUID-427FD8E9-7F89-4FDD-981C-E39B8F23C663" purpose="section1"><h2>Configuring the Legend widget
</h2><p id="GUID-10AC4EFB-3E50-4F80-8113-D1BE3A4D2791">The Legend widget can be set to open automatically when apps start. To do so, click the  dot on the widget to turn it dark green.</p></div>
<div class="wfsteps" purpose="wfsteps"><h4></h4><div class="context" id="GUID-817E0AD0-DAAA-4B31-880F-68B9DCF74366" purpose="context">

</div><div class="steps" id="GUID-CCB64297-6506-46F5-9010-7AE4DB1ED980"><div class="step_title">Steps:</div><ol>
<li purpose="step" id="ESRI_STEP_97DA5F894B744867B452AAE4FC97E19F"><span purpose="cmd" id="GUID-E4A9A8B7-3F3C-4741-B8DC-DB36E29D555C">Hover the mouse over the Legend widget and click the small edit icon
<img purpose="img" placement="inline" alt="Edit" title="Edit" src="03w3/GUID-31D329BD-BC73-4BBE-AE1D-3A1261BF912A-web.png">.</span><div class="stepresult" purpose="stepresult"><p id="GUID-9657CBF5-2983-49C8-A4A7-9BA34D300933">This opens the configuration window for this widget.</p><div class="image" purpose="image"><table><tr><td><img class="break" src="03w3/GUID-4C268FD8-AD98-4034-B7ED-4F012BAEF737-web.png" purpose="img" alt="Legend configuration" title="Legend configuration"></td></tr></table></div></div></li><li purpose="step" id="ESRI_STEP_9ED29A8ED49B43C286C401019EDB417A"><span purpose="cmd" id="GUID-A5CBD998-A8B8-4A84-A079-05B5B5A0F3B0">Optionally, click <span class="uicontrol">change widget icon</span> if you want to replace the default icon for this widget. </span><div class="info" purpose="info"><p id="GUID-1EEF34F1-3917-448D-88ED-DC85AFC6D5C3">A file explorer window opens allowing you to browse to a  local image file to use as the widget icon.</p></div></li><li purpose="step" id="ESRI_STEP_64ABA2C3727C46E5B599896E87B2BE98"><span purpose="cmd" id="GUID-25283EFD-EA64-4F0C-A775-2A39386658C1">Select an arrangement. There are two options, LEFT and RIGHT (LEFT is the default arrangement).</span></li><li purpose="step" id="ESRI_STEP_AC9E69FEDBF046D18D887D4737A906C8"><span purpose="cmd" id="GUID-0264ABDC-4A3F-4C5C-BBDE-3CE04C2FEACE">Check or uncheck the <span class="uicontrol">Auto Update</span> check box.</span><div class="info" purpose="info"><p id="GUID-F5094127-63AD-4EF1-9496-F7DC99CE39DE">When this option is checked, the Legend widget automatically
updates if the visibility of a layer or sublayer changes.</p></div></li><li purpose="step" id="ESRI_STEP_CD61F954D8B446F8BC6D0885E2D451A9"><span purpose="cmd" id="GUID-D42ED491-DE9E-42AF-9490-6C7205A36D41">Check or uncheck the <span class="uicontrol">Respect Current Map Scale</span> check box.</span><div class="info" purpose="info"><p id="GUID-D4C26503-5162-425B-A1AC-EFC51B14FF7C">When this option is checked, the Legend widget only shows symbols and labels  for layers visible at the current map scale.</p></div></li>
<li purpose="step" id="ESRI_STEP_7B6F4047CE824D82A0A16562483255B2"><span purpose="cmd" id="GUID-0843B5F1-9715-4291-8CF5-FAC68FBD5CBE">Click <span class="uicontrol">OK</span> to close this window.</span></li></ol></div></div>
<div class="section1" id="ESRI_SECTION1_10275307C5DF45D986A6922A5BBBE67B" purpose="section1"><h2>Using the Legend widget</h2><p id="GUID-46DAF4E8-D1CC-4D6B-8737-44AD8B24F41D">When the application starts, the Legend widget is automatically enabled. Clicking the Legend widget displays the legend window. Clicking the <span class="uicontrol">X</span> button in the upper right corner of the legend window closes it. </p><img purpose="img" placement="inline" alt="Legend result" title="Legend result" src="03w3/GUID-CA70E6B2-22DD-4A2C-8A6B-3166B2B0A2FE-web.png"></div><div class="wfsummary" id="GUID-2AAAF252-7642-4C1F-8785-AFC3638D89E9" purpose="wfsummary">
<p id="GUID-C863B165-5749-45F6-B06F-717D3C053902">

</p>
</div>
<div class="footer"> Copyright © 1995-2016 Esri. All rights reserved. </div></div></body></html>